﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_Flow_GetBangdingPosition]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_Flow_GetBangdingPosition];
GO
CREATE PROCEDURE [dbo].[sproc_Flow_GetBangdingPosition]
    @FlowID int,
    @StepID int
AS
SELECT b.position_id as position_id,b.position_name as position_name 
    FROM 
        uds_flow_member_bind a ,
        uds_position b 
    WHERE     a.obj_id = b.position_id 
        and a.flow_id = @flowID 
        and a.step_id = @stepid
        and a.obj_type =1